const ws = {
  namespaced: true,
  state() {
    return {
        messagedata:[
          ],
          onlinelists:[]
    }
  },
  mutations: {
    setmessagedata:(state,data)=>{
        state.messagedata.push(data)
    },
    setonlinelists:(state,onlinelists)=>{
      console.log("执行添加在线数组");
      state.onlinelists = onlinelists
    }
  },
  getters:{
    getmessagedata:(state)=>{
      return state.messagedata
    },
    getonlinelists:(state)=>{
  return state.onlinelists
    }
  },
  actions: {
    setmessagedata :({commit},data)=>{
        commit("setmessagedata",data)
    }
  },
  modules: {}
}
export default ws
